package com.ztgf.user.models.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.bo.shop.ShopUserRelationBO;
import com.ztgf.user.models.bo.UserInfoSaveBO;
import com.ztgf.user.models.bo.UserInfoSubUpdateBO;
import com.ztgf.user.models.dto.UserInfoDTO;
import com.ztgf.user.models.vo.UserInfoRoleRelationVO;
import com.ztgf.user.models.vo.UserInfoVO;

import java.util.HashMap;

/**
 * 用户基本信息服务
 *
 * @author zhanghualang
 * @Date 2020-05-28 17:43:46
 */
public interface IUserInfoService extends IService<UserInfoDTO> {
    boolean add(UserInfoSaveBO saveBO);

    boolean updateRole(UserInfoSubUpdateBO bo);

    Page<UserInfoRoleRelationVO> queryUserPageList(ShopUserRelationBO bo);

    UserInfoVO getVo(Long id); //获取手机和邮箱

    HashMap<String, Object> activeEmail(Long userId, String captcha); //激活邮箱

    UserInfoVO getVoByName(String name); //根据公司名称获取用户信息

    UserInfoDTO selectByShopId(Long shopId);
}
